package com.hebeiwangxiaozhang.admin.feign;

import com.hebeiwangxiaozhang.response.CommonResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@FeignClient("product-service")
public interface ProductServiceClient {
    @RequestMapping("/product/on-sale")
    CommonResponse onSaleToEs(@RequestBody Map<String, Object> onSaleBody);//？形式拼接参数，?id=250
}